package cn.ryh.designpatterndemo.decoratorpattern;


/**
 * @ClassName ConcreteDecoratorOne
 * @Description 具体装饰角色
 * @Author RaoYH
 * @Date 2019/4/25
 */
public class ConcreteDecoratorOne extends Decorator {
    public ConcreteDecoratorOne(Component _component) {
        super(_component);
    }
    private void methodOne(){
        System.out.println("methodOne：输入账户和密码");
    }

    @Override
    public void login() {
        this.methodOne();
        super.login();
    }
}
